<?php 
header('Content-Type:text/html;charset=gbk');
require_once("db_manage.php");
require_once './bbs/include/common.inc.php';
$uid = $_SESSION['uid'];
$title = $_POST['title'];
$area = $_POST['area'];
$taste = $_POST['taste'];
$condition = $_POST['condition'];
$service = $_POST['service'];
$traffic = $_POST['traffic'];
$expense = $_POST['expense'];
$num = $_POST['num'];
$costdate = $_POST['costdate'];
$type = $_POST['type'];
$telephone = $_POST['telephone'];
$content = $_POST['content'];
$address = $_POST['address'];
$back = $_GET['back'];

if($back=="back"){
	$id = $_GET['id'];
	$info = $_GET['info'];
	backFood($id,$info);
	echo "<script>location.href='manage_home_approve_food.php';</script>";
}else if($edit=="edit"){
	$id = $_POST['id'];
	$food = array(addslashes($title),addslashes($area),addslashes($taste),addslashes($condition),addslashes($service),addslashes($expense),addslashes($num),addslashes($costdate),addslashes($content),addslashes($uid),addslashes($telephone),addslashes($type),addslashes($address),$id);
	editMyFood($food);
}else{
	$food = array(addslashes($title),addslashes($area),addslashes($taste),addslashes($condition),addslashes($service),addslashes($expense),addslashes($num),addslashes($costdate),addslashes($content),addslashes($uid),addslashes($telephone),addslashes($type),addslashes($address));
	addMyFood($food);
}

echo "<script>location.href='manage_list_food.php';</script>";
?>